package com.hsnn.medstgmini.pro.base.model;
/**
 *@category 生产企业是否启用状态枚举类
 * @author 韩守松
 * @date 2016年1月13日
 */
public enum ProdCompStatus {
	   enabled(1, "启用"), disabled(2, "停用");
		private int key;
		private String value;

		private ProdCompStatus(int key, String value) {
			this.key = key;
			this.value = value;
		}

		public static String getName(int key) {
			for (ProdCompStatus pc : ProdCompStatus.values()) {
				if (pc.key == key) {
					return pc.value;
				}
			}
			return "";
		}

		public static ProdCompStatus getProdCompStatus(int key) {
			for (ProdCompStatus pc : ProdCompStatus.values()) {
				if (pc.key == key) {
					return pc;
				}
			}
			return null;
		}

		public int getKey() {
			return key;
		}

		public void setKey(int key) {
			this.key = key;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String value) {
			this.value = value;
		}

}
